package org.example.wx_springboot.controller;


import org.example.wx_springboot.common.Result;
import org.example.wx_springboot.entity.Ceshi;
import org.example.wx_springboot.service.ICeshiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ceshi")
public class CeshiController {

    @Autowired
    ICeshiService ceshiService;


    //    后台添加列表
    @PostMapping("/seve")
    public Result aasave(@RequestBody Ceshi ceshi){
        ceshiService.aasave(ceshi);
        return Result.success();
    }

}
